<!--
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
-->
<div class="nb-grid-stack grid-stack">
	<ng-container  #divContainer *ngFor="let card of cards; trackBy: trackByCardId">
		<view-card-component #wrapper [activeView]="activeView" [card]="card" [model]="model" [cells]="cells"></view-card-component>
		<ng-content *ngTemplateOutlet='wrapper.templateRef'></ng-content>
	</ng-container>
</div>

<div class="empty-message" *ngIf="empty && loaded">
	{{emptyText}}
</div>

<div *ngIf="!loaded" style="display: block; position: absolute; height: 100%; width: 100%; z-index: 1; background: #fff;">
	<loading-spinner [loading]="!loaded" [loadingMessage]="loadingMessage"></loading-spinner>
</div>
